﻿using BCT.Models;
using BCT.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCT.Domains
{
    public class UserDomain : IUserDomain
    {
        private readonly IUserRepository _userRepository;

        public UserDomain(UserRepository userRepository)
        {
            _userRepository = userRepository;
        }
        public UserModel GetUserInfo(int id)
        {
            return _userRepository.GetUserInfo(id);
        }
        public LoginResultModel Login(LoginModel model)
        {
            return _userRepository.Login(model);
        }
    }
}
